package com.luych.toolbox.docker.service.sdk.system.model;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Map;

public class DockerEventResult {

    @JsonProperty("Type")
    private String type;

    @JsonProperty("Action")
    private String action;

    @JsonProperty("Actor")
    private Actor actor;

    @JsonProperty("time")
    private long time;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public Actor getActor() {
        return actor;
    }

    public void setActor(Actor actor) {
        this.actor = actor;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public static class Actor {

        @JsonProperty("Attributes")
        private Map<String, String> attributes;

        @JsonProperty("ID")
        private String id;

        public Map<String, String> getAttributes() {
            return attributes;
        }

        public void setAttributes(Map<String, String> attributes) {
            this.attributes = attributes;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }
    }
}